package com.dingli.service;

import com.dingli.framework.entity.Resume;
import com.dingli.framework.entity.Train;
import com.dingli.framework.entity.Undertake;
import com.dingli.framework.util.Response;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITrainService {

    //查询列表
    Response<PageInfo<Train>> TRAIN_selectList(String search, Integer pageNum, Integer pageSize);

    //查看详情
    Response<List<Train>> TRAIN_selectAll (Long tnId);

    //新增
    Response<Long> TRAIN_insert(Train train);

    //修改
    Response<Object> TRAIN_updateById(Train train);

    //删除
    Response<Object> TRAIN_deleteById(Long tnId);

    //审核通过
    Response<Object> TRAIN_updateState (String tnId);

    //审核不通过
    Response<Object> TRAIN_update (String tnId);

    //查询审核中的
    Response<List<Train>> TRAIN_selectState(String tnState);

    //查询审核通过的
    Response<List<Train>> TRAIN_selectState1(String tnState);

    //统计数量
    Response<List<Train>>TRAIN_All(String tnId);
}
